<extend name="Base/common"/>
<block name="style">
    <link type="text/css" rel="stylesheet" href="__CSS__/articles.css"/>
</block>
<block name="body">
<div id="main-container" class="container">
        <div class="row">
            <div class="col-md-8">
                <div class="common_block_border detail_box">
                    <div class="common_block_title">
                        <div class="title"><h2>{$info.title}</h2></div>
                        <div class="author">
                            <span class="author"><a href="{$author.space_url}"><img src="{$author.avatar32}" class="img-circle"/>  {$author.nickname}</a>&nbsp;&nbsp;</span>
                            <span> 发表于 {$info.create_time|date='Y-m-d H:i',###}</span>
                        </div>
                        <p class="clearfix">
                            <if condition="check_auth('Articles/Index/edit',$info['uid'])&&($info['status'] neq 1)">
                                <a title="编辑" href="{:U('Articles/index/edit',array('id'=>$info['id']))}" class="btn btn-warning"><i class="icon-edit" style="font-size: 16px;">编辑</i></a>
                            </if>
                        </p>
                        <if condition="$info['cover'] neq 0">
                                <a title="{$info.title|op_t}" href="{:U('Articles/index/detail',array('id'=>$info['id']))}" class="cover">
                                    <img alt="{$info.title|op_t}" src="{$info.cover|getThumbImageById=708,304}">
                                </a>
                                <div class="clearfix" style="color: #999;font-size: 14px;">{$info.description}</div>
                            <else/>
                                <div class="clearfix" style="color: #999;font-size: 14px;">{$info.description}</div>
                        </if>
                        <if condition="$info['keywords'] neq ''">
                                <div class="keywords-box">
                                    <span>关键字</span>
                                    <volist name="keywords" id="vo" key="k">
                                        <span class="keywords">{$vo}</span> 
                                    </volist>
                                </div>
                        </if>
                    </div>
                    <hr/>
                    <section id="contents">
                        <div class="news-content">
                            <if condition="$info['source'] neq ''">
                                <div style="margin-bottom: 20px;color: #C0C0C0;">
                                    <i class="icon-chrome"></i> 来源：{$info.source}
                                </div>
                            </if>
                            {$info.detail.content}
                        </div>
                    </section>
                    <div style="padding:10px">
                        {:hook('localComment', array('path'=>"Articles/index/$info[id]", 'uid'=>$info['uid'],'count_model'=>'articles','count_field'=>'comment','this_url'=>'articles/index/detail'))}
                    </div>
                </div>
            </div>
            
            <div class="col-md-4">
                <div class="right_block public-bg-w">
                <div class="author_info">
                    <div class="right_block_title">
                        <h3>作者</h3>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-3">
                                <img class="img-circle" src="{$author.avatar64}"/>
                            </div>
                            <div class="col-xs-9">
                                <a href="{$author.space_url}">{$author.nickname}</a>
                                <p class="text-more">{$author.signature}</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                    <div class="author_num">
                        <span class="num">
                        {$author.articles_count}篇
                        <br />
                        文章总数
                        </span>
                        <span class="num">
                        {$author.articles_view}
                        <br />
                        总访问次数
                        </span>
                    </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                </div>
                {:W('Hot/lists',array('category'=>$info['category']))}
            </div>
        </div>
    </div>
    <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css"/>
    <script type="text/javascript">
        SyntaxHighlighter.all();
    </script>
</block>